//
//  BuildingItemModel.m
//  Utils
//
//  Created by enghou on 2018/4/28.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "BuildingItemModel.h"

@implementation BuildingItemModel
-(instancetype)initWithSource:(NSDictionary *)source{
    self = [super initWithSource:source];
    if (self) {
        self.name = [self contentForKey:@"buildingname" withSource:source];
        self.ids = [self contentForKey:@"id" withSource:source];
        self.date = [self contentForKey:@"createDate" withSource:source];
        self.address = [self contentForKey:@"buildingaddress" withSource:source];
        self.height = 60;
        self.needLayout = [source[@"layout"] boolValue];
    }
    return self;
}
@end
